<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<div>
    key:<input type="text" v-model="shop_id">
    val:<input type="text" v-model="val">
    <input type="button" value="add" @click="add">
    <ul>
        <li v-for="(value ,key,index) in lists">
            <span>{{key+'-'+value}}</span>
        </li>
    </ul>


</div>
</div>

<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            lists:{},
            shop_id:'',
            val:''
        },
        methods:{
            add:function(){
                if(!this.shop_id || !this.val){
                    return false;
                }
               this.$set(this.lists,this.shop_id,this.val);
            }
        }
    })
</script>

</body>
</html>